import request from '@/utils/request'

// 查询换算列表
export function listUnitConversion(query) {
  return request({
    url: '/wms/wms/unitConversion/list',
    method: 'get',
    params: query
  })
}

// 查询换算详细
export function getUnitConversion(mucUuid) {
  return request({
    url: '/wms/wms/unitConversion/' + mucUuid,
    method: 'get'
  })
}

// 新增换算
export function addUnitConversion(data) {
  return request({
    url: '/wms/wms/unitConversion',
    method: 'post',
    data: data
  })
}

// 修改换算
export function updateUnitConversion(data) {
  return request({
    url: '/wms/wms/unitConversion',
    method: 'put',
    data: data
  })
}

// 删除换算
export function delUnitConversion(mucUuid) {
  return request({
    url: '/wms/wms/unitConversion/' + mucUuid,
    method: 'delete'
  })
}
